import { createApp } from 'vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import './assets/main.css';
import App from './App.vue'
import router from './router'
import './utils/axios'
import './permission'
import store from './store'
import VueStorage from './utils/vue-ls';
import registGlobalFilter from './utils/filter'

const app = createApp(App)
    .use(store)
    .use(router)
    .use(Antd)
    .use(VueStorage, {
        namespace: 'web__', // key prefix
        name: 'ls', // name variable Vue.[ls] or this.[$ls],
        storage: 'local', // storage name session, local, memory
    })
app.mount('#app')

registGlobalFilter(app)

export default app